<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;
// 根目录
Route::get('/', 'index/Index/index');
// 登录页面
Route::get('login', 'index/Login/index');
Route::get('test', 'index/Login/test');
// 登录操作
Route::post('dologin', 'index/Login/do_login');
// 退出登录
Route::any('logout', 'index/Login/logout');
// recharge_member会员管理
Route::get('recharge_member', 'index/RechargeMember/getRechargeMemberList');
// 分配充值成为会员的资金 member_allocation
Route::get('member_allocation', 'index/RechargeMember/member_allocation');
// Banner位置管理
Route::get('banner', 'index/Banner/getBannerList');
Route::post('banner/addOrUpdate', 'index/Banner/addOrUpdate');
Route::get('banner/detail', 'index/Banner/detail');
Route::get('banner/changeStatus', 'index/Banner/changeStatus');
// Banner图片管理
Route::get('banner_item', 'index/BannerItem/getBannerItemList');
Route::get('banner_item/fill', 'index/BannerItem/fill');
Route::get('banner_item/detail', 'index/BannerItem/detail');
Route::post('banner_item/addOrUpdate', 'index/BannerItem/addOrUpdate');
// product_banner 详情管理
Route::get('product_banner', 'index/ProductBanner/getProductBannerList');
Route::post('product_banner/addOrUpdate', 'index/ProductBanner/addOrUpdate');
Route::post('product_banner/detail', 'index/ProductBanner/detail');
Route::get('product_banner/changeStatus', 'index/ProductBanner/changeStatus');
// 图片管理
Route::get('image', 'index/Image/getImageList');
Route::post('image/addOrUpdate', 'index/Image/addOrUpdate');
Route::get('image/detail', 'index/Image/detail');
Route::get('image/changeStatus', 'index/Image/changeStatus');
// Theme管理
Route::get('theme', 'index/Theme/getThemeList');
Route::post('theme/addOrUpdate', 'index/Theme/addOrUpdate');
Route::get('theme/detail', 'index/Theme/detail');
Route::get('theme/changeStatus', 'index/Theme/changeStatus');
// Product 管理
Route::get('product', 'index/Product/getProductList');
Route::post('product/addOrUpdate', 'index/Product/addOrUpdate');
Route::get('product/detail', 'index/Product/detail');
Route::get('product/changeStatus', 'index/Product/changeStatus');
// ProductImage 管理
Route::get('product_image', 'index/ProductImage/getProductImageList');
Route::post('product_image/addOrUpdate', 'index/ProductImage/addOrUpdate');
Route::get('product_image/detail', 'index/ProductImage/detail');
Route::get('product_image/changeStatus', 'index/ProductImage/changeStatus');
// ProductInfo 管理
Route::get('product_info', 'index/ProductInfo/getProductInfoList');
Route::post('product_info/addOrUpdate', 'index/ProductInfo/addOrUpdate');
Route::get('product_info/detail', 'index/ProductInfo/detail');
Route::get('product_info/changeStatus', 'index/ProductInfo/changeStatus');
// Productproperty 管理
Route::get('product_property', 'index/ProductProperty/getProductPropertyList');
Route::post('product_property/addOrUpdate', 'index/ProductProperty/addOrUpdate');
Route::post('product_property/addtoOrUpdate', 'index/ProductProperty/addtoOrUpdate');
Route::get('product_property/changeStatus', 'index/ProductProperty/changeStatus');
Route::get('product_property/detail', 'index/ProductProperty/detail');


// Category 管理
Route::get('category', 'index/Category/getCategoryList');
Route::post('category/addOrUpdate', 'index/Category/addOrUpdate');
Route::get('category/detail', 'index/Category/detail');
Route::get('category/changeStatus', 'index/Category/changeStatus');
// ThemeProduct 管理
Route::get('theme_product', 'index/ThemeProduct/getThemeProductList');
Route::get('theme_product/detail', 'index/ThemeProduct/detail');
Route::post('theme_product/delete', 'index/ThemeProduct/delete');
Route::post('theme_product/addOrUpdate', 'index/ThemeProduct/addOrUpdate');
// Card 管理
Route::get('bank_card', 'index/Card/getCardList');
Route::get('bank_card/detail', 'index/Card/detail');
Route::get('bank_card/changeStatus', 'index/Card/changeStatus');
Route::post('bank_card/addOrUpdate', 'index/Card/addOrUpdate');
// Daybook管理
Route::get('bank_daybook', 'index/Daybook/getCardList');
Route::get('user_daybook', 'index/Daybook/getUserList');
// Agent管理
Route::get('agent', 'index/Agent/getAgentList');
Route::post('agent/addOrUpdate', 'index/Agent/addOrUpdate');
Route::get('agent/detail', 'index/Agent/detail');
Route::get('agent/changeStatus', 'index/Agent/changeStatus');
// User 管理
Route::get('user', 'index/User/getUserList');
Route::post('user/update', 'index/User/update');
Route::get('user/detail', 'index/User/detail');
Route::get('user/changeStatus', 'index/User/changeStatus');
// Message 管理
Route::get('message', 'index/Message/getMessageList');
Route::post('message/addOrUpdate', 'index/Message/addOrUpdate');
Route::get('message/detail', 'index/Message/detail');
Route::get('message/changeStatus', 'index/Message/changeStatus');
// Notice 管理
Route::get('notice', 'index/Notice/getNoticeList');
Route::post('notice/addOrUpdate', 'index/Notice/addOrUpdate');
Route::get('notice/detail', 'index/Notice/detail');
Route::get('notice/changeStatus', 'index/Notice/changeStatus');
// 订单管理
Route::get('order', 'index/Order/getOrderList');
Route::get('order_two', 'index/Order/getStatusTwo');
Route::get('order_three', 'index/Order/getStatusThree');
Route::get('order_four', 'index/Order/getStatusFour');
Route::get('order_eight', 'index/Order/getStatusEight');
Route::get('order_nine', 'index/Order/getStatusNine');
Route::get('order/detail', 'index/Order/getOrderDetail');
Route::post('order/confirm_goods', 'index/Order/confirm_goods'); // 确认发货
Route::get('order/detail', 'index/Order/getOrderDetail'); // 确认收货填充
Route::post('order/collectGoods', 'index/Order/collectGoods'); // 确认收货
Route::get('order/product_detail', 'index/Order/product_detail'); // 收货地址等的填充

Route::get('test', 'index/Test/index');

// 优惠卷
Route::get('coupon', 'index/Coupon/getCouponList');
Route::post('coupon/addtoOrUpdate', 'index/Coupon/addtoOrUpdate');
Route::get('coupon/detail', 'index/Coupon/detail');
Route::get('coupon/changeStatus', 'index/Coupon/changeStatus');
